<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ColorRequester</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ColorRequester()</font></b></p>
<p><b>语法</b></p><blockquote>

Color = <font color="#006666"><b>ColorRequester</b></font>([CurrentColor])</blockquote>

<b>概要</b><br><blockquote>



Opens the standard requester to choose a color. The chosen color is returned 
under a 24-bit number containing the red, green and blue value, as usual. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>CurrentColor (optional)</i></td>
<td width="90%"> 
 
Sets the default color when the requester is opened. <a href="../2ddrawing/rgb.html">RGB()</a> can be used to get a valid color. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



The selected color, or -1 if the user canceled the requester. To easily get each RGB component value, <a href="../2ddrawing/red.html">Red()</a>, <a href="../2ddrawing/green.html">Green()</a> 
and <a href="../2ddrawing/blue.html">Blue()</a> can be used. 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  Color =<font color="#006666"> ColorRequester</font>()
  <b><font color="#006666">If</font></b> Color &gt; -1
    a$ = "You have selected following color value:" +<font color="#006666"> Chr</font>(10)  <font color="#006666">; Chr(10) only needed</font>
    a$ + "24 Bit value: " +<font color="#006666"> Str</font>(Color)              +<font color="#006666"> Chr</font>(10)  <font color="#006666">; for line-feed</font>
    a$ + "Red value:    " +<font color="#006666"> Str</font>(<font color="#006666">Red</font>(Color))         +<font color="#006666"> Chr</font>(10)
    a$ + "Green value:  " +<font color="#006666"> Str</font>(<font color="#006666">Green</font>(Color))       +<font color="#006666"> Chr</font>(10)
    a$ + "Blue value:   " +<font color="#006666"> Str</font>(<font color="#006666">Blue</font>(Color))
  <b><font color="#006666">Else</font></b>  
    a$ = "The requester was canceled."
  <b><font color="#006666">EndIf</font></b>
<font color="#006666">  MessageRequester</font>("Information", a$, 0)
  <b><font color="#006666">End</font></b>
</font></pre>
<br>
<p><img src="../HelpPictures/colorrequester.png"></p>

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center><a href=index.html>Requester Index</a> - <a href=fontrequester.html>FontRequester()</a> -&gt;



</body></html>